<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/tlds/nodes-faces.tld" prefix="n" %>

<f:subview id="commonHead">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <h:outputText escape="false" value='<link type="text/css" rel="stylesheet" href="#{NodesBean.cssPath}/faces.css"/>'/>
    <h:outputText escape="false" value='<link type="text/css" rel="stylesheet" href="#{NodesBean.cssPath}/main.css"/>'/><h:outputText escape="false" value='<script type="text/javascript">if (top == self) {document.location.href = "#{NodesBean.repositoryPath}/#{PathBean.path}?contentType=frame"; }</script>'/>     
    <n:styleSheets path="#{PathBean.path}"/>
    <h:outputText escape="false" value='<link type="image/x-image" rel="shortcut icon" href="#{NodesBean.contextPath}/favicon.ico"/>'/>
    <script type="text/javascript" language="Javascript">function run(func) {parent.contentFrame[func]();}</script>
    <script type="text/javascript" language="Javascript">
        function runDialog(func) {
            var parameters = parent.contentFrame[func]().join(";");
            var navigationApplet = parent.navigationFrame.document.getElementById("navigationApplet");
            if (navigationApplet != null)
                navigationApplet.startApplet(parameters);
        }
    
        function runElementDialog(element,event,func) {
            var parameters = parent.contentFrame[func]().join(";");
            var navigationApplet = parent.navigationFrame.document.getElementById("navigationApplet");
            if (navigationApplet != null)
                navigationApplet.startElementApplet(element, event, parameters);
        }
    
        function runJSFAction(form, jsfId, windowId) {
            if (typeof jsfcljs == 'function') {
                jsfcljs(parent.toolbarFrame.document.forms[form], jsfId + ',' + jsfId, windowId);
            }
            return false;
        }</script>

    <script type="text/javascript" language="Javascript">function dpf(f) {var adp = f.adp;if (adp != null) {for (var i = 0;i < adp.length;i++) {f.removeChild(adp[i]);}}};function apf(f, pvp) {var adp = new Array();f.adp = adp;var ps = pvp.split(',');for (var i = 0,ii = 0;i < ps.length;i++,ii++) {var p = document.createElement("input");p.type = "hidden";p.name = ps[i];p.value = ps[i + 1];f.appendChild(p);adp[ii] = p;i += 1;}};function jsfcljs(f, pvp, t) {apf(f, pvp);if (t) {f.target = t;}f.submit();dpf(f);};</script>
    <title><h:outputText value="#{PathBean.name}"/></title>
</f:subview>